ci: containerized unit-test gate for PRs#5
Merged
Merged
Conversation
Build the image and run `python3 -m unittest discover -s tests` inside it (tests/ mounted read-only, since .dockerignore keeps it out of the image), so CI exercises the artifact we ship rather than a bare runner Python. Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
The image ENTRYPOINT is scheduler.py, which loops forever; without --entrypoint the test command was appended as scheduler args and the container never exited. Run python3 directly instead. Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Adds
.github/workflows/tests.yml: on PRs tomain(and pushes tomain), build the Layover image and run the 29-test unittest suite inside the container rather than against a bare runner Python — so CI validates the actual shipped artifact.tests/is excluded from the image by.dockerignore, so the job mounts it read-only into/appand runspython3 -m unittest discover -s tests -vfrom there.Once this merges and the check runs once,
container-testsgets added to theprotect mainruleset as a required status check — closing the last branch-protection gap.🤖 Generated with Claude Code